package com.mdd.front.validate.order;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;

@Data
@ApiModel("预授款扣款记录创建参数")
public class PreAuthorizationPaymentRecordCreateValidate implements Serializable {

    private static final long serialVersionUID = 1L;

    @NotNull(message = "tenantId参数缺失")
    @ApiModelProperty(value = "租户号")
    private String tenantId;

    @NotNull(message = "preAuthorizationId参数缺失")
    @ApiModelProperty(value = "预授权记录")
    private String preAuthorizationId;

    @NotNull(message = "operateType参数缺失")
    @ApiModelProperty(value = "操作类型;操作类型：1、扣款")
    private String operateType;

    @NotNull(message = "money参数缺失")
    @ApiModelProperty(value = "扣除金额")
    private BigDecimal money;

    @NotNull(message = "remarks参数缺失")
    @ApiModelProperty(value = "备注")
    private String remarks;

    @NotNull(message = "alipayNo参数缺失")
    @ApiModelProperty(value = "扣款账单编号")
    private String alipayNo;

    @NotNull(message = "status参数缺失")
    @ApiModelProperty(value = "状态;状态1、扣款成功2、扣款失败3、扣款尝试中")
    private String status;
}
